<?php

namespace api\modules\app\controllers;

use api\components\BaseController;
use api\modules\app\services\DashboardService;
use api\modules\app\services\SectionService;
use api\traits\ControllerTrait;
use app\components\Job;
use Yii;

class DashboardController extends BaseController
{
    use ControllerTrait;

    public function actions()
    {
        $actions = parent::actions();
        unset($actions['index'],$actions['create'],$actions['update'],$actions['delete'],$actions['view']);
        return $actions;
    }

    public function actionIndex()
    {
        $params = $this->getQuery();
        return DashboardService::search($params);
    }
}
